﻿<UserControl x:Class="MyFinanceManager.PC.ucViewCategoriesGraph"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:graph="clr-namespace:De.LarsHildebrandt.WpfControls.WpfSimpleChart;assembly=De.LarsHildebrandt.WpfControls.WpfSimpleChart"
    x:Name="graphViewer">
    <Grid MinHeight="800">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.5*" MinWidth="500"/>
            <ColumnDefinition Width="0.5*" MinWidth="500"/>
        </Grid.ColumnDefinitions>
        <Label Content="Ausgaben" Grid.Column="1" Grid.Row="0" FontSize="16" Background="{DynamicResource VistaTaskbarOrange}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold"/>
        <Label Content="Einnahmen" Grid.Column="0" Grid.Row="0" FontSize="16" Background="{DynamicResource VistaTaskbarGreen}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontWeight="Bold" />
        <graph:PieChart Grid.Row="1"  ChartLegend="{Binding Path=PieLegendExp, ElementName=graphViewer}" DataContext="{Binding Path=PieRowsExp, ElementName=graphViewer}" Grid.Column="1" >
            <graph:PieChart.ChartBackground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#3EFD7D7D" Offset="0.5"/>
                    <GradientStop Color="#3EFDD0D0" Offset="1"/>
                    <GradientStop Color="#3EFDD0D0" Offset="0"/>
                </LinearGradientBrush>
            </graph:PieChart.ChartBackground>
            <!--<graph:PieChart.ChartColorMouseOver>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#D0EF4D4D" Offset="0.5"/>
                    <GradientStop Color="#D0FDD0D0" Offset="1"/>
                    <GradientStop Color="#D0FDD0D0" Offset="0"/>
                </LinearGradientBrush>
            </graph:PieChart.ChartColorMouseOver>-->
        </graph:PieChart>
        <graph:PieChart Grid.Row="1"  ChartLegend="{Binding Path=PieLegendEar, ElementName=graphViewer}" DataContext="{Binding Path=PieRowsEar, ElementName=graphViewer}" Grid.Column="0" >
            <graph:PieChart.ChartBackground>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#3E78FF7E" Offset="0.5"/>
                    <GradientStop Color="#3ED3FFD5" Offset="1"/>
                    <GradientStop Color="#3ED3FFD5" Offset="0"/>
                </LinearGradientBrush>
            </graph:PieChart.ChartBackground>
            <!--<graph:PieChart.ChartColorMouseOver>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#D04DFB4D" Offset="0.5"/>
                    <GradientStop Color="#D0FFFFFF" Offset="1"/>
                    <GradientStop Color="#D0FFFFFF" Offset="0"/>
                </LinearGradientBrush>
            </graph:PieChart.ChartColorMouseOver>-->
        </graph:PieChart>
        <Button Content="Neu Einfärben" Grid.Column="0" Grid.Row="2" Click="ReColorEarnings_Click" Style="{DynamicResource ButtonStyleGreen}"  />
        <Button Content="Neu Einfärben" Grid.Column="1" Grid.Row="2" Click="ReColorExpenses_Click" Style="{DynamicResource ButtonStyleOrange}" />
    </Grid>
</UserControl>
